package com.ego.member.po;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.ego.common.vo.member.MemberReceiveAddressVo;
import lombok.Data;

/**
 * @program: ego
 * @description 会员收货地址
 * @author KamTang
 * @date 2022-11-13 13:28:12
 */
@Data
@TableName("ums_member_receive_address")
public class MemberReceiveAddress implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * member_id
	 */
	private Long memberId;
	/**
	 * 收货人姓名
	 */
	private String name;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * 邮政编码
	 */
	private String postCode;
	/**
	 * 省份/直辖市
	 */
	private String province;
	/**
	 * 城市
	 */
	private String city;
	/**
	 * 区
	 */
	private String region;
	/**
	 * 详细地址
	 */
	private String detailAddress;
	/**
	 * 省市区代码
	 */
	private String areaCode;
	/**
	 * 是否默认
	 */
	private Integer defaultStatus;

	public MemberReceiveAddressVo toVo() {
		return BeanUtil.copyProperties(this, MemberReceiveAddressVo.class);
	}

}
